export async function login(params){
    const res = await this.axios({
        method: 'post',
        url: `/user/login`,
        params
    });
    console.log(res);
    if(res.data.code == 200){
      sessionStorage.setItem('token', res.data.token);
      this.$router.push('/home');
    }
}